/*
 * @Author: ls
 * @Date: 2021-10-14 14:00:19
 * @LastEditTime: 2021-10-14 16:45:44
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \Alive-master\assets\script\game\player\colliderPlayer.ts
 */
const { ccclass, property } = cc._decorator;

@ccclass
export default class ColliderPlayer extends cc.Component {
	onLoad(): void {
		cc.director.getCollisionManager().enabled = true;
	}

	onCollisionEnter(other: cc.Collider, self: cc.Collider): void {
		cc.audioEngine.stopMusic();
		cc.director.loadScene('over');
	}
}
